package day20170406;

import org.junit.Test;

public class FunctionDemo01Test {
	
	//加法
	@Test
	public void addTest() throws Exception {
		int sum = add(10, 20);
		System.out.println(sum);
	}
	
	//减法
	@Test
	public void reduceTest() throws Exception {
		int sum = reduce(10, 20);
		System.out.println(sum);
	}
	
	//除法
	@Test
	public void chuFaTest() throws Exception {
		int sum = chuFa(10, 20);
		System.out.println(sum);
	}
	
	//乘法
	@Test
	public void mulTest() throws Exception {
		int sum = mul(10, 20);
		System.out.println(sum);
	}
	
	//减法
	public int reduce(int a , int b){
		int sum = a - b;
		return sum;
	}
	
	//加法
	public int add(int a , int b){
		int sum = a + b;
		return sum;
	}
	
	//乘法
	public int mul(int a , int b){
		int sum = a * b;
		return sum;
	}
	
	//除法
	public int chuFa(int a , int b){
		int sum = a / b;
		return sum;
	}
}
